package com.example.octopus.entity.returnMessage;

import com.example.octopus.entity.Detail;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
@Getter
@Setter
public class ProductSelectAllReturnMessage{
    @JsonProperty("status")
    protected int status;
    @JsonProperty("details")
    protected List<Detail> details;


    @JsonProperty("errmsg")
    protected String errmsg;
    public ProductSelectAllReturnMessage(int status, List<Detail> details) {
        this.status = status;
        this.details = details;
    }

    public ProductSelectAllReturnMessage(String errmsg, List<Detail> details, int status) {
        this.errmsg = errmsg;
        this.details = details;
        this.status = status;
    }
}
